package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureDataRecordsMapper;
import com.ruoyi.system.domain.DispatchPressureDataRecords;
import com.ruoyi.system.service.IDispatchPressureDataRecordsService;

/**
 * 压力数据记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureDataRecordsServiceImpl implements IDispatchPressureDataRecordsService 
{
    @Autowired
    private DispatchPressureDataRecordsMapper dispatchPressureDataRecordsMapper;

    /**
     * 查询压力数据记录
     * 
     * @param pressureDataRecordsId 压力数据记录主键
     * @return 压力数据记录
     */
    @Override
    public DispatchPressureDataRecords selectDispatchPressureDataRecordsByPressureDataRecordsId(Long pressureDataRecordsId)
    {
        return dispatchPressureDataRecordsMapper.selectDispatchPressureDataRecordsByPressureDataRecordsId(pressureDataRecordsId);
    }

    /**
     * 查询压力数据记录列表
     * 
     * @param dispatchPressureDataRecords 压力数据记录
     * @return 压力数据记录
     */
    @Override
    public List<DispatchPressureDataRecords> selectDispatchPressureDataRecordsList(DispatchPressureDataRecords dispatchPressureDataRecords)
    {
        return dispatchPressureDataRecordsMapper.selectDispatchPressureDataRecordsList(dispatchPressureDataRecords);
    }

    /**
     * 新增压力数据记录
     * 
     * @param dispatchPressureDataRecords 压力数据记录
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureDataRecords(DispatchPressureDataRecords dispatchPressureDataRecords)
    {
        return dispatchPressureDataRecordsMapper.insertDispatchPressureDataRecords(dispatchPressureDataRecords);
    }

    /**
     * 修改压力数据记录
     * 
     * @param dispatchPressureDataRecords 压力数据记录
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureDataRecords(DispatchPressureDataRecords dispatchPressureDataRecords)
    {
        return dispatchPressureDataRecordsMapper.updateDispatchPressureDataRecords(dispatchPressureDataRecords);
    }

    /**
     * 批量删除压力数据记录
     * 
     * @param pressureDataRecordsIds 需要删除的压力数据记录主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureDataRecordsByPressureDataRecordsIds(Long[] pressureDataRecordsIds)
    {
        return dispatchPressureDataRecordsMapper.deleteDispatchPressureDataRecordsByPressureDataRecordsIds(pressureDataRecordsIds);
    }

    /**
     * 删除压力数据记录信息
     * 
     * @param pressureDataRecordsId 压力数据记录主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureDataRecordsByPressureDataRecordsId(Long pressureDataRecordsId)
    {
        return dispatchPressureDataRecordsMapper.deleteDispatchPressureDataRecordsByPressureDataRecordsId(pressureDataRecordsId);
    }
}
